<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>购物券管理-购物券规则</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<jsp:include page="../../include/baseManage.jsp"></jsp:include>
  </head>
  <body>   
  	<div class="mini-toolbar" style="border:0;font-size:12px;padding-left:6px;"> 
        <!-- 操作面板 -->
        <div class="operatePanel">
	       	<input class="mini-button" text="添加规则" iconCls="icon-addnew" plain="false" 
	       		onclick="CouponRuleHandler.addCouponRule" visible="false" id="coupon_rule_add"/>
	       	<input class="mini-button" text="编辑规则" iconCls="icon-edit" plain="false" 
	       		onclick="CouponRuleHandler.editCouponRule" visible="false" id="coupon_rule_edit"/>
	       	<input class="mini-button" text="删除规则" iconCls="icon-remove" plain="false" 
	       		onclick="CouponRuleHandler.delCouponRule" visible="false" id="coupon_rule_del"/>
	       	<input class="mini-button" text="刷新" iconCls="icon-btn-refresh" plain="false" 
	       		onclick="CouponRuleHandler.afresh" visible="false" id="coupon_rule_refresh"/>
	    </div>
    </div>
    <div class="mini-fit" id="couponRulePanel">
	    <div id="couponRuleGrid" class="mini-datagrid" fitColumns="true" style="width:100%;height:100%;" 
	    	multiSelect="true" pageSize="20" borderStyle="border-bottom:0;border-left:0;border-right:0;"
	    	virtualScroll="true" idField="bcrId" url="<%=path %>/getCouponRuleList.do">
	        <div property="columns">
	        	<div type="checkcolumn" ></div>
	            <div type="indexcolumn" width="40" headerAlign="center">序号</div>
	            <div field="bcrRule" name="bcrRule" width="100%" headerAlign="center">规则表达式（EXP）</div>
	            <div field="bcrSql" name="bcrSql" width="0" headerAlign="center">规则SQL</div>    
	            <div field="bcrState" name="bcrState" width="80" headerAlign="center" align="center">是否启用</div>
	        </div>
	    </div>
    </div>
  </body>
  <script src="handler/CouponRuleHandler.js" type="text/javascript"></script>
</html>
